package com.wwf.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author wwf
 * @date 2021年02月04日 12:20:44
 */
public class Result<T> {
    private String code;
    private List<T> data;

    public Result(String code, T data) {
        ArrayList<T> arrayList = new ArrayList<T>();
        arrayList.add(data);
        this.code = code;
        this.data = arrayList;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
